package Interview.JiaShiJijin;

/**
 * @author: leiwenkang
 * @date: 2020/5/19
 * @time: 19:51
 */
public class PingPongTest {
    public static void main(String args[]) {
        Thread t = new Thread() {
            public void run() {
                pong();
            }
        };

        t.run();
        System.out.print("ping");

    }

    static void pong() {
        System.out.print("pong");
    }

}
